package org.meb.speedway.model.common;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Embeddable;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import lombok.Setter;

@Embeddable
@Getter
@Setter
@NoArgsConstructor
@RequiredArgsConstructor
@AllArgsConstructor
public class Fingerprint {

	@Column(nullable = false)
	@Temporal(TemporalType.TIMESTAMP)
	@NonNull
	private Date insertDate;

	@Column(nullable = false)
	@Temporal(TemporalType.TIMESTAMP)
	@NonNull
	private Date updateDate;

	@Column(length = 100)
	private String user;
}